from clickhouse_driver import Client
from clickhouse_driver.errors import Error

try:
    # 连接到 ClickHouse 数据库
    client = Client(
        host='192.168.143.99',
        user='default',
        password='',
        database='default',
        port=10097
    )

    # 执行查询
    result = client.execute('SELECT * FROM res_data_t_fusion_wy_zz')

except Error as e:
    print(f"ClickHouse Error: {e}")